package data

type OrderDetail struct {
    Id          uint    `gorm:"primaryKey;type:int(10) unsigned AUTO_INCREMENT;comment:自增主键"`
    OrderId     uint    `gorm:"type:int(10) unsigned not null;default:0;comment:订单id"`
    ProductId   uint    `gorm:"type:int(10) unsigned not null;default:0;comment:商品id"`
    ProductName string  `gorm:"type:varchar(255) not null;default:'';comment:商品名称"`
    UnitPrice   float64 `gorm:"type:decimal(12,2) unsigned not null;default:0;comment:商品单价"`
    Num         uint    `gorm:"type:int(10) unsigned not null;default:0;comment:商品数量"`
    Price       float64 `gorm:"type:decimal(12,2) unsigned not null;default:0;comment:商品总价"`
}
